spawn: add direct Landlock policies#15504
Closed
Alizter wants to merge 2 commits into
Closed
Conversation
Add a selectable --sandbox-actions-backend option with auto, bwrap, and landlock backends. Implement a Landlock wrapper/internal command that keeps the shared cache read-only, keep bwrap available explicitly, and factor shared program lookup helpers into bin Util. Add cram coverage for bwrap/Landlock shared-cache policies and backend selection. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
Move the typed write-policy and ruleset implementation into Stdune and let Spawn install a prepared Landlock ruleset directly in the child before exec. Keep the internal wrapper as a black-box test interface. Signed-off-by: Ali Caglayan <alizter@gmail.com>
Alizter
force-pushed
the
push-yxqyryzxsnxp
branch
from
July 14, 2026 13:32
8832645 to
da41678
Compare
Member
|
The bindings look good, but I think this is still relying on action runners. That is something I prefer to avoid at this time. I'll incorporate some the binding work from here though. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is on top of #15231, adding landlock bindings for spawn.